package com.ruoyi.spot.openapi.orderbook.service;

import java.util.List;
import com.ruoyi.spot.openapi.orderbook.domain.SpotOpenapiOrderbook;
import com.ruoyi.spot.openapi.orderbook.domain.VO.SpotOpenapiOrderbookVO;

/**
 * 订单簿Service接口
 * 
 * @author saumell
 * @date 2024-08-08
 */
public interface ISpotOpenapiOrderbookService 
{
    /**
     * 查询订单簿
     * 
     * @param id 订单簿主键
     * @return 订单簿
     */
    public SpotOpenapiOrderbookVO selectSpotOpenapiOrderbookById(Integer id);

    /**
     * 查询订单簿列表
     * 
     * @param spotOpenapiOrderbook 订单簿
     * @return 订单簿集合
     */
    public List<SpotOpenapiOrderbookVO> selectSpotOpenapiOrderbookList(SpotOpenapiOrderbookVO spotOpenapiOrderbook);

    /**
     * 新增订单簿
     * 
     * @param spotOpenapiOrderbook 订单簿
     * @return 结果
     */
    public int insertSpotOpenapiOrderbook(SpotOpenapiOrderbook spotOpenapiOrderbook);

    /**
     * 修改订单簿
     * 
     * @param spotOpenapiOrderbook 订单簿
     * @return 结果
     */
    public int updateSpotOpenapiOrderbook(SpotOpenapiOrderbook spotOpenapiOrderbook);

    /**
     * 批量删除订单簿
     * 
     * @param ids 需要删除的订单簿主键集合
     * @return 结果
     */
    public int deleteSpotOpenapiOrderbookByIds(Integer[] ids);

    /**
     * 删除订单簿信息
     * 
     * @param id 订单簿主键
     * @return 结果
     */
    public int deleteSpotOpenapiOrderbookById(Integer id);

    List<SpotOpenapiOrderbookVO> selectSpotAllData();

    Integer queryCurryNumber(String currencyPair);
}
